export type Status = 0 | 1
export interface IhospitalListParams {
  page: number
  limit: number
  hosname?: string
  hoscode?: string
  hostype?: string
  provinceCode?: string
  cityCode?: string
  districtCode?: string
  status?: Status
}

export interface IhospitalListItem {
  id: string
  createTime?: string
  param: {
    hostypeString: string
    fullAddress: string
  }
  hosname: string
  logoData: string
  status: Status
}
export type IhospitalList = IhospitalListItem[]
export interface IhospitalListRes {
  content: IhospitalList
  totalElements: number
}

// 省,市,区数据对象接口
export interface Idict {
  id: number
  name: string
  value: string
}

export type IdictList = Idict[]

// 医院详情相关的接口
export interface IhosDetail extends IhospitalListItem {
  hoscode: string
  intro: string
  route: string
}
export interface IhosBook {
  cycle: number
  releaseTime: string
  stopTime: string
  quitTime: string
  rule: string[]
}
export interface IhosDetailRes {
  bookingRule?: IhosBook
  hospital?: IhosDetail
}

// 科室数据接口
export type IdepList = Idep[]
export interface Idep {
  depcode: string
  depname: string
  children: IdepList
  disabled?: boolean
}

// 排班规则数据接口
export interface IbookingSchedule {
  workDate: string
  dayOfWeek: string
  reservedNumber: number
  availableNumber: number
}
export type IbookingScheduleList = IbookingSchedule[]
export interface IscheduleRuleRes {
  total: number
  bookingScheduleList: IbookingScheduleList
  baseMap: {
    hosname: string
  }
}

// 排班规则详情数据接口
export interface IscheduleDetail {
  id: string
  title: string
  skill: string
  workDate: string
  reservedNumber: number
  availableNumber: number
  amount: number
}
export type IscheduleDetailList = IscheduleDetail[]
